/* 全局样式变量 */
:root {
  /* 暖色调配色方案 */
  --primary-orange: #FF6B35;
  --primary-orange-light: #FF8E53;
  --primary-orange-dark: #E55A2B;
  --secondary-yellow: #FFB74D;
  --accent-red: #FF5252;
  --neutral-white: #FFFFFF;
  --neutral-light: #F8F9FA;
  --neutral-gray: #6C757D;
  --neutral-dark: #343A40;
  
  /* 渐变定义 */
  --gradient-primary: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-yellow) 100%);
  
  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.2);
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--neutral-dark);
  background-color: var(--neutral-light);
}

/* 自定义按钮样式 */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  color: white;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-orange-dark) 0%, var(--primary-orange) 100%);
}

.btn-outline-primary {
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.btn-outline-primary:hover {
  background-color: var(--primary-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 卡片设计 */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* 导航栏样式 */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-orange) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--neutral-dark) !important;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-orange) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 英雄区域样式 */
.hero-section {
  background: var(--gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 3rem 1rem !important;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .btn-primary,
  .btn-outline-primary {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-orange-dark);
}